<div id="extras">

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?>

<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<ul></ul>

<h2>分类</h2>
<ul>
<?php wp_list_cats('sort_column=ID&list=0&optioncount=1&hierarchical=1&children=1&hide_empty=0'); ?>
</ul>

<h2>存档</h2>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
</ul>

 <!---
<h2><?php echo __("Links");?></h2> 
--->
<ul class="linklist">
<?php get_links_list(); ?>
</ul>

                             <li><h2><?php echo __('Meta'); ?></h2>
                                <ul>
                                        <?php wp_register(); ?>
                                        <li><?php wp_loginout(); ?></li>
                                        <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitiona
l">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
                                        <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
                                        <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal pub
lishing platform.">WordPress</a></li>
                                        <?php wp_meta(); ?>
                                </ul>

                                </li>


<?php endif; ?>

        <?php
        $access=get_settings("blog_access");
        if(!$access) $access=0;
        $access++;
        update_option("blog_access",$access);
        echo "<li><h2>Access: $access </h2></li>\n";
        ?>



</div>
